Filter hook '{$permastructname}_rewrite_rules'
in WP Core File wp-includes/class-wp-rewrite.php at line 1432
Description
Filters rewrite rules used for individual permastructs. The dynamic portion of the hook name, `$permastructname`, refers to the name of the registered permastruct. Possible hook names include: - `category_rewrite_rules` - `post_format_rewrite_rules` - `post_tag_rewrite_rules`
Occurrences
Filename |
Line Number |
wp-includes/class-wp-rewrite.php |
1432 |
Parameters
Type |
Name |
Description |
string[] |
$rules |
Array of rewrite rules generated for the current permastruct, keyed by their regex pattern. |
PHP Doc
/**
* Filters rewrite rules used for individual permastructs.
*
* The dynamic portion of the hook name, `$permastructname`, refers
* to the name of the registered permastruct.
*
* Possible hook names include:
*
* - `category_rewrite_rules`
* - `post_format_rewrite_rules`
* - `post_tag_rewrite_rules`
*
* @since 3.1.0
*
* @param string[] $rules Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.
*/